package cn.inface.cn.jiekou2;

import java.util.concurrent.Callable;

public class Test {
    public static void main(String[] args) {
        Telephone telephone=new Telephone();
        telephone.dailup();

        Dvd dvd =new Dvd();
        dvd.play();

       Camera camera =new Camera();
       camera.takePhoto();

       Mobile mobile =new Mobile();
       mobile.takePhoto();
       mobile.play();
       mobile.dailup();

       Person person=new Person();
       person.use(telephone);
       person.use(dvd);
       person.use(camera);
       person.use(mobile);


    }
}
